package state.pattern.demo;

/**
 * Created by DELL
 * Date: 2019/10/11.
 * Time: 10:14
 */
public class Off extends RemoteControl {
    @Override
    public void pressSwith(TV context) {
        System.out.println("Iam already on,Going to be off now");
        context.setState(new On());
    }
}
